package io;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: xwl
 * Date: 2023-08-18
 * Time: 15:05
 */

public class IODemo7 {
    public static void main(String[] args) {
        try (OutputStream outputStream = new FileOutputStream("d:/test.txt")) {
            //
            outputStream.write(97);
            outputStream.write(98);
            outputStream.write(99);
            outputStream.write(99);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
